﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EgeUniversity.SolarCarProject
{
	public static class Calculations
	{
		public static double Map(double value, double sMin, double sMax, double tMin, double tMax)
		{
			//Linear transformation. Convert values
			return (value - sMin) * (tMax - tMin) / (sMax - sMin) + tMin;
		}
	}
}
